package JAVA基础01.方法的定义和调用;

//方法的定义和调用
public class text {
    public static void main(String[] args) {

        int x = sum(3, 4);
        System.out.println(x);
    }

    public static int sum(int a, int b) {
        return a + b;
    }

}
